﻿@using NewLife;
@using NewLife.Web;
@using XCode;
@{
    var fact = ViewBag.Factory as IEntityFactory;
    var page = ViewBag.Page as Pager;
}
<div class="d-inline-flex align-items-center flex-shrink-0">
    <label for="roleId" class="control-label mb-0">角色：</label>
    @*@Html.ForDropDownList("roleId", Role.FindAllWithCache(), page["roleId"], "全部", true)*@
    @*@Html.ForListBox("roleIds", Role.FindAllWithCache(), page["roleIds"])*@
    @await Html.PartialAsync("_Form_ListBox", new ListBoxModel("roleIds", Role.FindAllWithCache(), page["roleIds"]))
</div>
@await Html.PartialAsync("_List_Toolbar_Enable")
@await Html.PartialAsync("_List_Toolbar_SelectDepartment", "departmentId")
@*@await Html.PartialAsync("_List_Toolbar_DateRange")*@